package com.lq.educationsystem.common.constant;

public enum ResultContant {
    //正常返回结果
    SUCCESS_RESULT(200,"成功"),
    DEFEAT_RESULT(404,"失败"),
    //异常返回结果
    ERROR_RESULT(501,"异常")

    ;
    private int code;
    private String message;

    ResultContant(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
